<html>
<head runat="server">
    <title></title>

    <script type="text/javascript" language="javascript">
    //直接打印
    function printWithoutAlert(){　　
        document.all.WebBrowser.ExecWB(6,6);　　
    }
    //打印设置
    function printSetup(){　　
        document.all.WebBrowser.ExecWB(8,1);　　
    }
    //打印预览
    function printPrieview(){　　
        document.all.WebBrowser.ExecWB(7,1);　　
    }
</script>

    <!-- 此控件用来直接调用浏览器的一些方法 -->
    <object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" style="display: none">
    </object>
    <!-- 适用于打印机的样式设置 -->
    <style media="print" type="text/css">　　
    .Noprint{display:none;}　　
    .PageNext{page-break-after: always;}　　
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table align="center" class="NOPRINT">
                <tr>
                    <td align="center">
                        <button title="直接打印" onclick="printWithoutAlert()">直接打印</button>
                        <input type="button" value="打印设置" onclick="printSetup()"/>
                        <button onclick='printPrieview()' title='打印预览...'>打印预览</button>
                    </td>
                </tr>
            </table>
            <div class="NOPRINT">
                以下为打印区:<br/>
            </div>
            <div id="print" runat="server">
            </div>
            [#list orders as order]
            <hr size="1" noshadow color="black" class="NOPRINT">
            [#if order_index==count]
            	<div style="width:720px;height:450px;">
            		<div style="position:absolute;z-index:'${order_index+1}1';margin-left:${(order.shipping.logistics.fnz)!}px;margin-top:${(order.shipping.logistics.fnt)!}px;">
            			发货人： ${(order.store.storeExt.storeName)!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}2';margin-left:${(order.shipping.logistics.faz)!}px;margin-top:${(order.shipping.logistics.fat)!}px;">
            			发货地址：${(order.store.storeExt.address)!}
            		</div>
            		<div  style="position:absolute;z-index:'${order_index+1}3';margin-left:${(order.shipping.logistics.fpz)!}px;margin-top:${(order.shipping.logistics.fpt)!}px;">
            			发货人手机号码：${(order.store.storeExt.mobile)!}</div>
            		<div style="position:absolute;z-index:'${order_index+1}4';margin-left:${(order.shipping.logistics.snz)!}px;margin-top:${(order.shipping.logistics.snt)!}px;">
            			收货人： ${order.receiveName!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}5';margin-left:${(order.shipping.logistics.saz)!}px;margin-top:${(order.shipping.logistics.sat)!}px;">
            			收货地址：${order.receiveAddress!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}6';margin-left:${(order.shipping.logistics.spz)!}px;margin-top:${(order.shipping.logistics.spt)!}px;">
            			收货人手机号码：${order.receiveMobile!}
            		</div>
            	</div>
            [#else]
            <div class="PageNext">
            	<div style="width:720px;height:450px;">
            		<div style="position:absolute;z-index:'${order_index+1}1';margin-left:${(order.shipping.logistics.fnz)!}px;margin-top:${(order.shipping.logistics.fnt)!}px;">
            			发货人： ${(order.store.storeExt.storeName)!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}2';margin-left:${(order.shipping.logistics.faz)!}px;margin-top:${(order.shipping.logistics.fat)!}px;">
            			发货地址：${(order.store.storeExt.address)!}
            		</div>
            		<div  style="position:absolute;z-index:'${order_index+1}3';margin-left:${(order.shipping.logistics.fpz)!}px;margin-top:${(order.shipping.logistics.fpt)!}px;">
            			发货人手机号码：${(order.store.storeExt.mobile)!}</div>
            		<div style="position:absolute;z-index:'${order_index+1}4';margin-left:${(order.shipping.logistics.snz)!}px;margin-top:${(order.shipping.logistics.snt)!}px;">
            			收货人： ${order.receiveName!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}5';margin-left:${(order.shipping.logistics.saz)!}px;margin-top:${(order.shipping.logistics.sat)!}px;">
            			收货地址：${order.receiveAddress!}
            		</div>
            		<div style="position:absolute;z-index:'${order_index+1}6';margin-left:${(order.shipping.logistics.spz)!}px;margin-top:${(order.shipping.logistics.spt)!}px;">
            			收货人手机号码：${order.receiveMobile!}
            		</div>
            	</div>
            </div>
            [/#if]
            [/#list]
            
        </div>
    </form>
</body>
</html>